package com.edgclub.edg.model;


import com.hyphenate.easeui.model.UserAuth;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * 帖子评论表
 * 
 * @author xiejunbo
 * @email 624664181@qq.com
 * @version register_1.0.0
 * @date 2014年12月5日 下午3:52:08
 **/

public class Reply implements Serializable {

	private static final long serialVersionUID = 1492935316093192911L;

	private Long id=0l;// 主键ID 自增

	private Long userId=0l;// 回复者ID/评论者ID/点赞者ID

	private String usernick;// 回复者/评论者/点赞者昵称

	private String userLogo;// 回复者/评论者/点赞者头像

	private Long replyId=0l;// 回复某个评论的评论ID

	private Long replyUserId;// 回复的那条评论的作者id

	private String replyUsernick;// 回复的那条评论的作者昵称

	private String content;// 回复内容

	private Long updateAt=0l;// 更新时间

	private String cityName;
	private String provName;
	private String url; // 语音地址
	private String protocol;// 语音协议

	private int type;

	private ArrayList<Reply> replys;
	private User user;//发帖者对象信息

	private int remainReplys;

	private String authentication = "";

	private String floor;

	private UserAuth userAuth;
	
	private String sex;

	private int likes;//评论内容被点赞数
	private boolean liked;//评论是否已经点赞

	private ArrayList<PostsAlbum> albums;// 对应的相册



	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the userId
	 */
	public Long getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	/**
	 * @return the usernick
	 */
	public String getUsernick() {
		return usernick;
	}

	/**
	 *            the usernick to set
	 */
	public void setUsernick(String usernick) {
		this.usernick = usernick;
	}

	/**
	 * @return the userLogo
	 */
	public String getUserLogo() {
		return userLogo;
	}

	/**
	 * @param userLogo
	 *            the userLogo to set
	 */
	public void setUserLogo(String userLogo) {
		this.userLogo = userLogo;
	}

	/**
	 * @return the replyId
	 */
	public Long getReplyId() {
		return replyId;
	}

	/**
	 * @param replyId
	 *            the replyId to set
	 */
	public void setReplyId(Long replyId) {
		this.replyId = replyId;
	}

	/**
	 * @return the replyUserId
	 */
	public Long getReplyUserId() {
		return replyUserId;
	}

	/**
	 * @param replyUserId
	 *            the replyUserId to set
	 */
	public void setReplyUserId(Long replyUserId) {
		this.replyUserId = replyUserId;
	}

	/**
	 * @return the replyUsernick
	 */
	public String getReplyUsernick() {
		return replyUsernick;
	}

	/**
	 *            the replyUsernick to set
	 */
	public void setReplyUserNick(String replyUsernick) {
		this.replyUsernick = replyUsernick;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content
	 *            the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @return the updateAt
	 */
	public Long getUpdateAt() {
		return updateAt;
	}

	/**
	 * @param updateAt
	 *            the updateAt to set
	 */
	public void setUpdateAt(Long updateAt) {
		this.updateAt = updateAt;
	}

	public ArrayList<Reply> getReplys() {
		return replys;
	}

	public void setReplys(ArrayList<Reply> replys) {
		this.replys = replys;
	}

	public void setReplyUsernick(String replyUsernick) {
		this.replyUsernick = replyUsernick;
	}

	public int getRemainReplys() {
		return remainReplys;
	}

	public void setRemainReplys(int remainReplys) {
		this.remainReplys = remainReplys;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getProvName() {
		return provName;
	}

	public void setProvName(String provName) {
		this.provName = provName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getProtocol() {
		return protocol;
	}

	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getAuthentication() {
		return authentication;
	}

	public void setAuthentication(String authentication) {
		this.authentication = authentication;
	}

	public String getFloor() {
		return floor;
	}

	public void setFloor(String floor) {
		this.floor = floor;
	}

	public UserAuth getUserAuth() {
		return userAuth;
	}

	public void setUserAuth(UserAuth userAuth) {
		this.userAuth = userAuth;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public int getLikes() {
		return likes;
	}

	public void setLikes(int likes) {
		this.likes = likes;
	}

	public boolean isLiked() {
		return liked;
	}

	public void setLiked(boolean liked) {
		this.liked = liked;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public ArrayList<PostsAlbum> getAlbums() {
		return albums;
	}

	public void setAlbums(ArrayList<PostsAlbum> albums) {
		this.albums = albums;
	}

	@Override
	public boolean equals(Object o) {
		try {
			Reply other = (Reply) o;
			return other.id.equals(id);
		} catch (ClassCastException e) {
			e.printStackTrace();
		}
		return super.equals(o);
	}
}
